package com.mxprojects.gui
{
	import com.mxprojects.language.Word;
	
	import flash.display.MovieClip;
	
	public class StatusIcon extends MovieClip
	{
		public static const OLD:String = "old";
		public static const NEW:String = "new";
		public static const LOCKED:String = "locked";
		public static const STICKY:String = "sticky";
		public static const REPLIED:String = "replied";
		
		private static const SCALE_PRIVATE_MESSAGES:Number = .8;
		
		public function StatusIcon(statusFrame:String, section:String = ""){
			//go to the right frame
			setStatus(statusFrame);
			mouseEnabled = false;
			
			//scale if we need to
			if(section == Word.PRIVATE_MESSAGES){
				scaleX = SCALE_PRIVATE_MESSAGES;
				scaleY = SCALE_PRIVATE_MESSAGES;
			}
		}
		
		public function setStatus(statusFrame:String):void {
			gotoAndStop(statusFrame);
		}

	}
}